package com.xcc.server.domains.vo;


import com.xcc.server.domains.enums.MessageType;

import java.util.Map;

/**
 * @Author: xcc
 * @Date: 2021/2/4 15:27
 * @Description: 消息
 */
public class Message<T> {

    /** 消息类型 */
    private MessageType messageType;
    /** 消息内容 */
    private T body;
    /** 请求头 */
    private Map<String, Object> header;

    public MessageType getMessageType() {
        return messageType;
    }

    public void setMessageType(MessageType messageType) {
        this.messageType = messageType;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }

    public Map<String, Object> getHeader() {
        return header;
    }

    public void setHeader(Map<String, Object> header) {
        this.header = header;
    }
}
